/*
 * envcheck.c
 *
 *  Created on: 2010-10-1
 *      Author: jack
 */
#include <stdio.h>
#include <stdlib.h>

static int check_conf_folder() {
	if (system("mkdir $HOME/.diggcd -p") != -1) {
		return 0;
	} else {
		return -1;
	}
}


int checkenv()
{
	return check_conf_folder>0;
}
